package com.guoxianwei.scm.service;

import com.guoxianwei.scm.integration.spring.SpringHelper;

public class ServiceFactory {

	public static Object getService(String name){
		return SpringHelper.findSpringBean(name, null, false);
	}
	
	public static Object getService(Class<?> type){
		return SpringHelper.findSpringBean(null, type, true);
	}
	
	public static Object getService(String name,Class<?> type){
		return SpringHelper.findSpringBean(name, type, true);
	}
}
